﻿function TheMonthlyRepaymentAmountCompute(interestRate, dueTime, capital)
{
    return (TotalRepaymentAmountCompute(interestRate, dueTime, capital) / dueTime).toFixed(2);
}

function TotalRepaymentAmountCompute(interestRate, dueTime, capital) {
    return (capital + ((capital * interestRate) / 12) * dueTime).toFixed(2);
}